<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>枯月杂谈</title>
    <meta charset="UTF-8">
    <link rel="icon" href="img/L.svg" type="image/svg+xml">
    <style type="text/css">
        :root{
            --top-height: 200px;
        }
        .head{
            text-align: center;
        }
        body{
            /*background-image: url("img/8c7c70c62a9f481eb8a5ec66e1220477.jpeg");
            background-size: 100%,100%;
            background-repeat: no-repeat;
            overflow-x: hidden;
            overflow-y: hidden;
            background-attachment: fixed;*/
            background-color: gray;
        }
        .login{
            width: 20%;
            left: 5%;
            /*background-color: chartreuse;*/
        }
        .link{
            width: 90%; height: 500px;
            left: 5%; top: calc(var(--top-height) + 110px);
            background-color: rgba(0,255,255,0.5);
            position: absolute;
        }
        .top{
            width: 90%; height: var(--top-height);
            left: 5%; top: 0;
            background-color: skyblue;
            position: absolute;
        }
        .option{
            width: 90%; height: 100px;
            left: 5%; top: calc(var(--top-height) + 5px);
            background-color: rgb(162, 162, 162);
            position: absolute;
        }
        .link_box{
            width: 94%;
            left: 3%;
            /*background-color: skyblue;*/
            position: relative;
        }
        a{
            text-decoration: none;
            color: black;
        }
    </style>
</head>
<body>
    <div class="top">
        <h1 style="text-align: left">&emsp;枯月杂谈</h1>
        <p style="text-align: right">生活本来就是很枯燥的，要去适应这种枯燥。</p>
        <p style="text-align: right">——wlly-lzh(枯月)</p>
    </div>
    <div class="option">
        <br>
        <hr>
        <div class="login">
        <%
            /*判断是否有人登陆*/
			if(session.getAttribute("usertype") != null) {
                String username= session.getAttribute("username").toString();
                String id=session.getAttribute("id").toString();
                // 用户页面的链接
				out.println("<a href=\"/Lweb/user?action=UserPage&id=" + id +"\">&emsp;" + username + "</a>");
            }else {
				out.println("<a href=\"/Lweb/user?action=ToLogin\">&emsp;登陆</a>");
            }
        %>
        </div>
        <%--<a href="/Lweb/user?action=ToLogin">登陆</a>--%>
    </div>
    <div class="link">
        <p style="text-align: center ">wlly-lzh的个人小网站，供学习和满足个人兴趣。有事请联系：wlly_lzh@163.com</p>
        <hr style="width: 95%; height: 2px; border: none; background-color: gray; color: gray">
        <div class="link_box">

        </div>
    </div>
</body>
</html>